#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2022/2/16 17:51
# @Author  : ldh
from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.awz.awz_search_page import awz_search_page


class awz_search(UIParent) :

    @classmethod
    def test_search(cls) :
        '''首页搜索'''
        awz_search_page.open_search()
        status = awz_search_page.check()
        asserts.true(status, "打开搜索页校验")
        awz_search_page.moveout()
        awz_search_page.search()
        status = awz_search_page.ifempty()
        if status == True :
            awz_search_page.openapp()
